package com.huike.mapper.system;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.huike.dto.SysPageQueryDTO;
import com.huike.dto.SysUserDTO;
import com.huike.pojo.User;
import com.huike.vo.SysUserPageVO;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface SysUserMapper   {

    Page<SysUserPageVO> selectDictList(SysPageQueryDTO queryDTO);

    @Update("update sys_user set status = #{status}")
    void changeStatus(Integer status );
    @Select("select * from sys_user where user_name = #{userName}")
    String  selectUserName(SysUserDTO userDTO);

    void add(User user);
@Delete("delete from sys_user where id in  (#{ids})")
    void deleteUser(List<Long> ids);
}
